/**
 * @Author: Bobby
 * @Date: 2021-12-30 10:01:42
 * @LastEditTime: 2022-01-11 07:44:58
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\baseComs\layout\index.js
 * @CIMC-V2
 */
import uiLineChart from './uiLineChart'
import uiPieChart from './uiPieChart'
import uiBarChart from './uiBarChart'
import uiGaugeChart from './uiGaugeChart'
import cloneDeep from 'lodash/cloneDeep'
import uiScatterChart from './uiScatterChart'
import uiFunnel from './uiFunnel'
import uiRadar from './uiRadar'
import uiCode from './uiCode'
import { translateTitle } from '@/utils/i18n'
//后续添加其它布局
export default [
  {
    name: '代码块',
    list: [
      Object.assign(cloneDeep(uiCode), {
        chartTypeValue: 'designByUser',
        chartTypeLabel: translateTitle('Ve.chart.代码块'),
        chartTypeSrc: require('./imgs/line-simple.png'),
      }),
    ],
  },
  {
    name: '折线图',
    list: [
      Object.assign(cloneDeep(uiLineChart), {
        chartTypeValue: 'baseLine',
        chartTypeLabel: translateTitle('Ve.chart.基础折线图'),
        chartTypeSrc: require('./imgs/line-simple.png'),
      }),
      Object.assign(cloneDeep(uiLineChart), {
        chartTypeValue: 'smoothLine',
        chartTypeLabel: translateTitle('Ve.chart.平滑折线图'),
        chartTypeSrc: require('./imgs/line-smooth.png'),
      }),
      Object.assign(cloneDeep(uiLineChart), {
        chartTypeValue: 'dynamicLine',
        chartTypeLabel: translateTitle('Ve.chart.动态生成折线图'),
        chartTypeSrc: require('./imgs/line-stack.png'),
      }),
      Object.assign(cloneDeep(uiLineChart), {
        chartTypeValue: 'areaLine',
        chartTypeLabel: translateTitle('Ve.chart.基础面积图'),
        chartTypeSrc: require('./imgs/area-basic.png'),
      }),
      Object.assign(cloneDeep(uiLineChart), {
        chartTypeValue: 'avgLine',
        chartTypeLabel: translateTitle('Ve.chart.有平均值的折线图'),
        chartTypeSrc: require('./imgs/line-marker.png'),
      }),
      Object.assign(cloneDeep(uiLineChart), {
        chartTypeValue: 'timeMarkLine',
        chartTypeLabel: translateTitle('Ve.chart.图表标域折线图'),
        chartTypeSrc: require('./imgs/line-sections.png'),
      }),
      Object.assign(cloneDeep(uiLineChart), {
        chartTypeValue: 'designByUser',
        chartTypeLabel: translateTitle('Ve.chart.自定义配置'),
        chartTypeSrc: require('./imgs/line-simple.png'),
      }),
    ],
  },
  {
    name: '饼图',
    list: [
      Object.assign(cloneDeep(uiPieChart), {
        chartTypeValue: 'basePie',
        chartTypeLabel: translateTitle('Ve.chart.基础饼图'),
        chartTypeSrc: require('./imgs/pie-simple.png'),
      }),
      Object.assign(cloneDeep(uiPieChart), {
        chartTypeValue: 'conPie',
        chartTypeLabel: translateTitle('Ve.chart.带总数的圆环'),
        chartTypeSrc: require('./imgs/6ed3ca62-2f48-4811-9d37-aef979d9954f.jpeg'),
      }),
      Object.assign(cloneDeep(uiPieChart), {
        chartTypeValue: 'sumBar',
        chartTypeLabel: translateTitle('Ve.chart.带总数的圆环'),
        chartTypeSrc: require('./imgs/6ed3ca62-2f48-4811-9d37-aef979d9954f.jpeg'),
      }),
      Object.assign(cloneDeep(uiPieChart), {
        chartTypeValue: 'doughnutPie',
        chartTypeLabel: translateTitle('Ve.chart.圆环饼图'),
        chartTypeSrc: require('./imgs/pie-doughnut.png'),
      }),
      Object.assign(cloneDeep(uiPieChart), {
        chartTypeValue: 'nightingalePie',
        chartTypeLabel: translateTitle('Ve.chart.基础南丁格尔玫瑰图'),
        chartTypeSrc: require('./imgs/pie-roseType-simple.png'),
      }),
      Object.assign(cloneDeep(uiPieChart), {
        chartTypeValue: 'shadowPie',
        chartTypeLabel: translateTitle('Ve.chart.阴影饼图'),
        chartTypeSrc: '',//https://echarts.isqqw.com/asset/get/s/x_Zc1c7Tbr.png
      }),
      Object.assign(cloneDeep(uiPieChart), {
        chartTypeValue: 'conNightingalePie',
        chartTypeLabel: translateTitle('Ve.chart.带内容的南丁格尔玫瑰图'),
        chartTypeSrc: '',//https://echarts.isqqw.com/asset/get/s/x_Zc1c7Tbr.png
      }),
      Object.assign(cloneDeep(uiPieChart), {
        chartTypeValue: 'designByUser',
        chartTypeLabel: translateTitle('Ve.chart.自定义配置'),
        chartTypeSrc: require('./imgs/pie-simple.png'),
      }),
    ],
  },
  {
    name: '柱状图',
    list: [
      Object.assign(cloneDeep(uiBarChart), {
        chartTypeValue: 'orgBar',
        chartTypeLabel: translateTitle('Ve.chart.横向柱状图'),
        chartTypeSrc: require('./imgs/bar-simple.png'),
      }),
      Object.assign(cloneDeep(uiBarChart), {
        chartTypeValue: 'baseBar',
        chartTypeLabel: translateTitle('Ve.chart.基础柱状图'),
        chartTypeSrc: require('./imgs/bar-simple.png'),
      }),
      Object.assign(cloneDeep(uiBarChart), {
        chartTypeValue: 'stackBar',
        chartTypeLabel: translateTitle('Ve.chart.堆叠柱状图'),
        chartTypeSrc: require('./imgs/xz8ZeeY9yi.png'),
      }),
      Object.assign(cloneDeep(uiBarChart), {
        chartTypeValue: 'lineBar',
        chartTypeLabel: translateTitle('Ve.chart.柱状加折线图'),
        chartTypeSrc: require('./imgs/xwi18LYQoT.png'),
      }),
      Object.assign(cloneDeep(uiBarChart), {
        chartTypeValue: 'backgroundBar',
        chartTypeLabel: translateTitle('Ve.chart.带背景色的柱状图'),
        chartTypeSrc: require('./imgs/bar-background.png'),
      }),
      Object.assign(cloneDeep(uiBarChart), {
        chartTypeValue: 'alignTickBar',
        chartTypeLabel: translateTitle('Ve.chart.坐标轴刻度与标签对齐'),
        chartTypeSrc: require('./imgs/bar-tick-align.png'),
      }),
      Object.assign(cloneDeep(uiBarChart), {
        chartTypeValue: 'radiusBar',
        chartTypeLabel: translateTitle('Ve.chart.圆角柱状图'),
        chartTypeSrc: require('./imgs/1688971660756.png'),
      }),
      Object.assign(cloneDeep(uiBarChart), {
        chartTypeValue: 'horBar',
        chartTypeLabel: translateTitle('Ve.chart.横向柱状图'),
        chartTypeSrc: require('./imgs/1688971757169.png'),
      }),
      Object.assign(cloneDeep(uiBarChart), {
        chartTypeValue: 'tickBar',
        chartTypeLabel: translateTitle('Ve.chart.分隔柱状图'),
        chartTypeSrc: require('./imgs/1688971803866.png'),
      }),
      Object.assign(cloneDeep(uiBarChart), {
        chartTypeValue: 'progressBar',
        chartTypeLabel: translateTitle('Ve.chart.进度条'),
        chartTypeSrc: require('./imgs/1688971848393.png'),
      }),
      Object.assign(cloneDeep(uiBarChart), {
        chartTypeValue: 'rowStackBar',
        chartTypeLabel: translateTitle('Ve.chart.单行堆叠图'),
        chartTypeSrc: require('./imgs/1688971889842.png'),
      }),
      Object.assign(cloneDeep(uiBarChart), {
        chartTypeValue: 'designByUser',
        chartTypeLabel: translateTitle('Ve.chart.自定义配置'),
        chartTypeSrc: require('./imgs/bar-simple.png'),
      }),
    ],
  },
  {
    name: '仪表盘',
    list: [
      Object.assign(cloneDeep(uiGaugeChart), {
        chartTypeValue: 'baseGauge',
        chartTypeLabel: translateTitle('Ve.chart.基础仪表盘'),
        chartTypeSrc: require('./imgs/gauge-simple.png'),
      }),
      Object.assign(cloneDeep(uiGaugeChart), {
        chartTypeValue: 'animateGauge',
        chartTypeLabel: translateTitle('Ve.chart.带标签数字动画的仪表盘'),
        chartTypeSrc: require('./imgs/gauge-simple.png'),
      }),
      Object.assign(cloneDeep(uiGaugeChart), {
        chartTypeValue: 'speedGauge',
        chartTypeLabel: translateTitle('Ve.chart.速度仪表盘'),
        chartTypeSrc: require('./imgs/gauge-speed.png'),
      }),
      Object.assign(cloneDeep(uiGaugeChart), {
        chartTypeValue: 'designByUser',
        chartTypeLabel: translateTitle('Ve.chart.自定义配置'),
        chartTypeSrc: require('./imgs/gauge-simple.png'),
      }),
    ],
  },
  {
    name: '散点图',
    list: [
      Object.assign(cloneDeep(uiScatterChart), {
        chartTypeValue: 'baseScatter',
        chartTypeLabel: translateTitle('Ve.chart.基础散点图'),
        chartTypeSrc: require('./imgs/scatter-simple.png'),
      }),
      Object.assign(cloneDeep(uiScatterChart), {
        chartTypeValue: 'indexScatter',
        chartTypeLabel: translateTitle('Ve.chart.指数散点图'),
        chartTypeSrc: require('./imgs/scatter-exponential-regression.png'),
      }),
      Object.assign(cloneDeep(uiScatterChart), {
        chartTypeValue: 'riskScatter',
        chartTypeLabel: translateTitle('Ve.chart.风险图'),
        chartTypeSrc: require('./imgs/1688972061578.png'),
      }),
      Object.assign(cloneDeep(uiScatterChart), {
        chartTypeValue: 'designByUser',
        chartTypeLabel: translateTitle('Ve.chart.自定义配置'),
        chartTypeSrc: require('./imgs/scatter-simple.png'),
      }),
    ],
  },
  {
    name: '漏斗图',
    list: [
      Object.assign(cloneDeep(uiFunnel), {
        chartTypeValue: 'designByUser',
        chartTypeLabel: translateTitle('Ve.chart.自定义配置'),
        chartTypeSrc: require('./imgs/funnel.png'),
      }),
    ],
  },
  {
    name: '雷达图',
    list: [
      Object.assign(cloneDeep(uiRadar), {
        chartTypeValue: 'baseRadar',
        chartTypeLabel: translateTitle('Ve.chart.基础雷达图'),
        chartTypeSrc: require('./imgs/xCFUxp7fbW.png'),
      }),
    ],
  },

  // {
  //   name: '多图例',
  //   list: [
  //     Object.assign(cloneDeep(uiBarChart), {
  //       chartTypeValue: 'lineAndBar',
  //       chartTypeLabel: translateTitle('Ve.chart.炫酷柱图加折线图组合'),
  //       chartTypeSrc: 'https://echarts.isqqw.com/asset/get/s/x8GXbdDRDq.png',
  //     }),
  //   ],
  // },
]
